<div class="container-fluid">
    <nav class="navbar navbar-inverse navbar-inner navbar-fixed-top">
        <div class="container">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                        data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                {{if !empty($user)}}
                <a class="navbar-brand" href="#">Bienvenido{{$user.user_name_view}}a{{:MyC('home_site_name')}}</a>
                <a  class="navbar-brand" href="{{:MyUrl('index/user/logout')}}">[退出]</a>
                {{else /}}
                <a class="navbar-brand" href="#">Bienvenido a {{:MyC('home_site_name')}}</a>

                {{if !empty($home_user_login_type)}}
                <a  class="navbar-brand" href="{{:MyUrl('index/user/logininfo')}}">[ Iniciar sesión ]</a>
                {{/if}}
                {{if !empty($home_user_reg_type)}}
                <a  class="navbar-brand" href="{{:MyUrl('index/user/regInfo')}}">[ Crear una cuenta ]</a>
                {{/if}}

                {{/if}}
                <!--            <div><img src="{{$public_host}}static/web/images/logo.jpg" class="visible-xs img-responsive"></div>-->
            </div>
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav">
                    {{if !empty($common_nav_top_right_list) and is_array($common_nav_top_right_list)}}
                    {{foreach $common_nav_top_right_list as $nav}}
                    {{if empty($nav['items'])}}
                    <li class="menu-hd {{if isset($nav['is_login']) and $nav['is_login'] eq 1 and empty($user)}}login-event{{/if}}">
                        <a href="{{if empty($user)}}javascript:;{{else /}}{{$nav.url}}{{/if}}" target="_top">
                            <i class="am-icon-fw {{$nav.icon}}"></i>
                            <span style="font-size: 16px">{{$nav.name}}</span>
                            {{if isset($nav['badge']) and $nav['badge'] gt -1}}
                            {{if $nav['badge'] gt 0}}
                            <strong class="am-badge am-badge-danger am-round common-cart-total">{{$nav.badge}}</strong>
                            {{else /}}
                            <strong class="common-cart-total am-round">{{$nav.badge}}</strong>
                            {{/if}}
                            {{/if}}
                        </a>
                    </li>
                    {{else /}}
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
                           aria-expanded="false" style="font-size: 16px"><span class="glyphicon glyphicon-menu-down" aria-hidden="true"></span>{{$nav.name}} </a>
                        <ul class="dropdown-menu">
                            {{foreach $nav.items as $navs}}
                            <li class="menu-hd {{if isset($nav['is_login']) and $nav['is_login'] eq 1 and empty($user)}}login-event{{/if}}">
                                <a href="{{if ((isset($nav['is_login']) and $nav['is_login'] eq 1) or (isset($navs['is_login']) and $navs['is_login'] eq 1)) and empty($user)}}javascript:;{{else /}}{{$navs.url}}{{/if}}">{{$navs.name}}</a>
                            </li>
                            {{/foreach}}
                        </ul>
                    </li>
                    {{/if}}
                    {{/foreach}}
                    {{/if}}


                </ul>
                <ul class="nav navbar-nav navbar-right inlineFlex alignitemcenter" >
                    <li ><a href="{{$Think.__MY_URL__}}" class="navlinkfont">Home</a></li>
                    <li><a href="#" class="navlinkfont">Quienes somos</a></li>
                    <li><a href="#" class="navlinkfont">Productos</a></li>
                    <li><a href="#" class="navlinkfont">Contáctenos</a></li>
                    <li>
                        <img data-toggle="tooltip"  data-html="true"
                             title="<img src='https://qr.api.cli.im/newqr/create?data=f&level=H&transparent=false&bgcolor=%23FFFFFF&forecolor=%23000000&blockpixel=12&marginblock=2&logourl=&logoshape=no&size=50&bgimg=&text=&fontsize=30&fontcolor=%23000000&fontfamily=simsun.ttc&incolor=&outcolor=&qrcode_eyes=null&background=&wper=&hper=&tper=&lper=&eye_use_fore=1&qrpad=10&kid=cliim&key=8f89a1a7b339fce6e07ca4a5fd22f9cf' style='height:100px;width:100px'>" data-placement="bottom"
                             src="https://qr.api.cli.im/newqr/create?data=f&level=H&transparent=false&bgcolor=%23FFFFFF&forecolor=%23000000&blockpixel=12&marginblock=2&logourl=&logoshape=no&size=50&bgimg=&text=&fontsize=30&fontcolor=%23000000&fontfamily=simsun.ttc&incolor=&outcolor=&qrcode_eyes=null&background=&wper=&hper=&tper=&lper=&eye_use_fore=1&qrpad=10&kid=cliim&key=8f89a1a7b339fce6e07ca4a5fd22f9cf" width="25" height="25">
                    </li>
                </ul>
            </div><!-- /.navbar-collapse -->
        </div>
    </nav>
</div>